package com.sxhalo.fsms.quartz;

import org.quartz.SchedulerException;

import com.sxhalo.fsms.domain.SysTask;

public interface TaskService {
	
	int remove(Long id);
    
    int removeBatch(Long[] ids);

    void initSchedule() throws SchedulerException;

    void changeStatus(Long jobId, String jobStatus) throws SchedulerException;

    void updateCron(Long jobId) throws SchedulerException;
    
    void stop(SysTask scheduleJob) throws SchedulerException;
    
    void run(SysTask scheduleJob) throws SchedulerException;
}
